﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace QueueSimulator
{
    public class QueueStatistic : IComparable
    {
        public int State { get; set; }
        public double Time { get; set; }
        public double Percentage { get; set; }

        #region IComparable Members

        public int CompareTo(object obj)
        {
            var e = obj as QueueStatistic;

            if (e != null)
            {
                return this.State.CompareTo(e.State);
            }

            throw new ArgumentException();
        }

        #endregion
    }
}
